package com.woniuxy.movie.order.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.google.zxing.WriterException;
import com.woniuxy.movie.commons.web.model.PageInfo;
import com.woniuxy.movie.order.dto.OrderInfoDto;
import com.woniuxy.movie.order.form.CreateOrderForm;
import com.woniuxy.movie.order.form.orderinfo.PagePayForm;
import com.woniuxy.movie.order.model.OrderInfo;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 电影票订单详情表 服务类
 * </p>
 *
 * @author 刘存益
 * @since 2023年11月17日
 */
public interface OrderInfoService extends IService<OrderInfo>{
    OrderInfoDto createOrder(CreateOrderForm form);

    PageInfo selectPageOrders(Integer pageNum, Integer pageSize);

    OrderInfoDto findSingleOrder(String orderId);

    String pagePay(PagePayForm form) throws Exception;

    void handlerOrder(Map<String, String> params) throws AlipayApiException, IOException, WriterException, Exception;
}
